package com.xdjmall.common;

public enum ResultEnum {
	LOGIN_SUCCESS(200,"登录成功"),
	LOGIN_FAILED(1001,"查无此用户"),
	WRONG_PWD(1002,"密码错误"),
	USER_LOCKED(1003,"用户被锁定"),
	REGIST_SUCCESS(200,"注册成功"),
	REGIST_FAILED(2001,"注册失败"),
	OPR_SUCCESS(200,"操作成功"),
	ADD_FAILED(3001,"添加失败"),
	UPDATE_FAILED(3002,"更新失败"),
	REMOVE_FAILED(3003,"删除失败"),
	NO_DATA(3004,"空集合"),
	ORDER_FAILED(4001,"订单异常"),
	CART_FAILED(5001,"购物车异常");
	
	//私有属性
	private Integer code;
	private String message;
	ResultEnum(Integer code,String message){
		this.code = code;
		this.message = message;
	}
	public Integer getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
}
